package com.jinxinol.basic.system.service;

import java.util.List;

import com.jinxinol.basic.system.domain.SysPosition;
import com.jinxinol.basic.system.domain.SysRole;
import com.jinxinol.basic.system.domain.SysUser;
import com.jinxinol.core.common.IService;

/**
 * @author Automatic generation * 用户表IService
 */
public interface ISysUserService extends IService<SysUser> {
	/**
	 *  查询所有用户
	 */
	public List<SysUser> find(SysUser sysUser)throws Exception;
	/**
	 * 用户登录
	 * */
	SysUser userLogin(String uname,String pword)throws Exception;
	
	/**
	 * 查询用户关联信息
	 * */
	SysUser selectByUserMore(SysUser user)throws Exception;
	
	List<SysPosition> selectUserPosition(SysUser user) throws Exception;
	
	List<SysRole> selectUserRole(SysUser user) throws Exception;
	
	List<SysRole> selectOtherRole(SysUser user) throws Exception;
	
	void saveUserPosition(SysUser user) throws Exception;
	
	void saveUserRole(SysUser user) throws Exception;
}

